import Vue from 'vue'
import VueRouter from 'vue-router'
import TimuView from '../views/TimuView.vue'

import AdminUser from '../views/AdminUser.vue'
import LingShi from '../views/LingShi.vue'

import ZhongView from '../views/ZhongView.vue'

import DaView from '../views/DaView.vue'


import HomeView from '../views/HomeView.vue'
import Ranking_listView from '../views/Ranking_listView.vue'
import Ranking_list2View from '../views/Ranking_list2View.vue'

import Questionview from '../views/QuestionView.vue'
import Mineview from '../views/MineView.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/timu',
    name: 'Timu',
    component: TimuView
  },
  {
    path: '/',
    name: 'admin',
    component: AdminUser
  }, 
   {
    path: '/zhong',
    name: 'Zhong',
    component: ZhongView
  },
  {
    path: '/lingshi',
    name: 'LingShi',
    component: LingShi
  },
  {
    path: '/daview',
    name: 'daview',
    component: DaView
  }


  ,
  {
    path: '/home',
    name: 'home',
    component: HomeView
  },
  {
    path: '/ranking_list',
    name: 'rankingList',
    component: Ranking_listView
  },
  
  {
    path: '/ranking_list2',
    name: 'rankinglist2',
    component: Ranking_list2View
  },
  {
    path: '/question',
    name: 'question',
    component: Questionview
  },
  {
    path: '/mine',
    name: 'mine',
    component: Mineview
  },


]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
